package com.geek2.springbootdemo.mapper;

import com.geek2.springbootdemo.pojo.SmbmsRole;
import com.geek2.springbootdemo.pojo.SmbmsUser;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface UserMapper {
    List<SmbmsUser> queryAllUser(Map<String, Object> map);

    List<SmbmsRole> queryRole();

    SmbmsUser queryUser(Map<String, Object> map);

    int updateUser(Map<String, Object> map);

    int addUser(SmbmsUser smbmsUser);

    int delUser(String uid);

    int getUserCount(HashMap<String, Object> map);


}
